package cn.taoticket.client;
import cn.taoticket.pojo.TaoticketCinemaSeat;

import cn.taoticket.fallback.TaoticketCinemaSeatClientFallBack;
import java.util.List;
import java.util.Map;

import cn.taoticket.config.TaoTicketConfiguration;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RequestBody;
/**
* Created by shang-pc on 2018/5/15.
*/
@FeignClient(name = "taoticket-item-provider", configuration = TaoTicketConfiguration.class, fallback = TaoticketCinemaSeatClientFallBack.class)
public interface RestTaoticketCinemaSeatClient {

@RequestMapping(value = "/getTaoticketCinemaSeatById",method = RequestMethod.POST)
public TaoticketCinemaSeat getTaoticketCinemaSeatById(@RequestParam("id") Long id)throws Exception;

@RequestMapping(value = "/getTaoticketCinemaSeatListByMap",method = RequestMethod.POST)
public List<TaoticketCinemaSeat>	getTaoticketCinemaSeatListByMap(@RequestParam Map<String,Object> param)throws Exception;

@RequestMapping(value = "/getTaoticketCinemaSeatCountByMap",method = RequestMethod.POST)
public Integer getTaoticketCinemaSeatCountByMap(@RequestParam Map<String,Object> param)throws Exception;

@RequestMapping(value = "/qdtxAddTaoticketCinemaSeat",method = RequestMethod.POST)
public Integer qdtxAddTaoticketCinemaSeat(@RequestBody TaoticketCinemaSeat taoticketCinemaSeat)throws Exception;

@RequestMapping(value = "/qdtxModifyTaoticketCinemaSeat",method = RequestMethod.POST)
public Integer qdtxModifyTaoticketCinemaSeat(@RequestBody TaoticketCinemaSeat taoticketCinemaSeat)throws Exception;
}
